<script type="text/javascript">
attachSaveUrl   = '<?php echo $this->getUrl('orderattach/adminhtml_order/save'); ?>';
attachReloadUrl = '<?php echo $this->getUrl('orderattach/adminhtml_order/reload'); ?>';
attachDeleteUrl = '<?php echo $this->getUrl('orderattach/adminhtml_order/delete'); ?>';
</script>
<div class="entry-edit">
    <div class="entry-edit-head">
        <h4 class="icon-head head-attributes"><?php echo $this->__('Order Attachments'); ?></h4>
    </div>
    <div class="fieldset">
        <div class="hor-scroll">
        
            <?php $attachmentFields = $this->getAttachmentFields(); ?>
            <?php if ($attachmentFields->getSize() > 0): ?>
            <table cellspacing="0" class="form-list">
                <tbody>
                    <?php foreach ($attachmentFields as $field): ?>
                    <tr>
                        <td class="label">
                            <label><?php echo $this->__($field->getLabel()); ?>
                            <span style="padding-left: 4px; position: relative; top: 2px;" id="edit_<?php echo $field->getFieldname(); ?>">
                                <a href="#" onclick="attachEdit('<?php echo $field->getFieldname(); ?>'); return false;"><img src="<?php echo $this->getSkinUrl('images/amorderattach/edit.png') ?>" border="0" alt="Edit" title="Edit" /></a>
                            </span></label>
                        </td>
                        <td class="value" id="field_<?php echo $field->getFieldname(); ?>">
                            <?php echo $field->getRenderer()->render(); ?>
                        </td>
                    </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
            <?php endif; ?>
            
        </div>
    </div>
</div>
<div class="clear"></div>